import axios from '@/libs/api.request'
import qs from 'qs'

export const getTableData1 = (params) => {
  return axios.request({
    url: 'admins/equipmentVibration/page?t='+new Date().getTime(),
    params,
    method: 'get'
  })
}
export const echart1 = (params) => {
  return axios.request({
    url: 'admins/equipmentVibration/conditionPage?t='+new Date().getTime(),
    params,
    method: 'get'
  })
}
export const add1 = (data) => {
  return axios.request({
    url: 'admins/equipmentVibration/add',
    data: qs.stringify(data),
    method: 'post'
  })
}
export const edit1 = (data) => {
  return axios.request({
    url: 'admins/equipmentVibration/edit',
    data: qs.stringify(data),
    method: 'post'
  })
}
export const delete1 = (data) => {
  return axios.request({
    url: 'admins/equipmentVibration/delete',
    data: qs.stringify(data),
    method: 'post'
  })
}
//导出
export const download1 = (params) => {
  return axios.request({
    url: 'admins/equipmentVibration/download?t='+new Date().getTime(),
    method: 'get',
    responseType: 'blob',
    params
  })
}

export const getTableData2 = (params) => {
  return axios.request({
    url: 'admins/equipmentLubeAnalyze/page?t='+new Date().getTime(),
    params,
    method: 'get'
  })
}
export const echart2 = (params) => {
  return axios.request({
    url: 'admins/equipmentLubeAnalyze/conditionPage?t='+new Date().getTime(),
    params,
    method: 'get'
  })
}
export const add2 = (data) => {
  return axios.request({
    url: 'admins/equipmentLubeAnalyze/add',
    data: qs.stringify(data),
    method: 'post'
  })
}
export const edit2 = (data) => {
  return axios.request({
    url: 'admins/equipmentLubeAnalyze/edit',
    data: qs.stringify(data),
    method: 'post'
  })
}
export const delete2 = (data) => {
  return axios.request({
    url: 'admins/equipmentLubeAnalyze/delete',
    data: qs.stringify(data),
    method: 'post'
  })
}

//导出
export const download2 = (params) => {
  return axios.request({
    url: 'admins/equipmentLubeAnalyze/download?t='+new Date().getTime(),
    method: 'get',
    responseType: 'blob',
    params
  })
}


export const getTableData3 = (params) => {
  return axios.request({
    url: 'admins/equipmentMetalAnalyze/page?t='+new Date().getTime(),
    params,
    method: 'get'
  })
}
export const echart3 = (params) => {
  return axios.request({
    url: 'admins/equipmentMetalAnalyze/conditionPage?t='+new Date().getTime(),
    params,
    method: 'get'
  })
}
export const add3 = (data) => {
  return axios.request({
    url: 'admins/equipmentMetalAnalyze/add',
    data: qs.stringify(data),
    method: 'post'
  })
}
export const edit3 = (data) => {
  return axios.request({
    url: 'admins/equipmentMetalAnalyze/edit',
    data: qs.stringify(data),
    method: 'post'
  })
}
export const delete3 = (data) => {
  return axios.request({
    url: 'admins/equipmentMetalAnalyze/delete',
    data: qs.stringify(data),
    method: 'post'
  })
}
//导出
export const download3 = (params) => {
  return axios.request({
    url: 'admins/equipmentMetalAnalyze/download?t='+new Date().getTime(),
    method: 'get',
    responseType: 'blob',
    params
  })
}
export const getTableData4 = (params) => {
  return axios.request({
    url: 'admins/equipmentCoolingAnalyze/page?t='+new Date().getTime(),
    params,
    method: 'get'
  })
}
export const echart4 = (params) => {
  return axios.request({
    url: 'admins/equipmentCoolingAnalyze/conditionPage?t='+new Date().getTime(),
    params,
    method: 'get'
  })
}
export const add4 = (data) => {
  return axios.request({
    url: 'admins/equipmentCoolingAnalyze/add',
    data: qs.stringify(data),
    method: 'post'
  })
}
export const edit4 = (data) => {
  return axios.request({
    url: 'admins/equipmentCoolingAnalyze/edit',
    data: qs.stringify(data),
    method: 'post'
  })
}
export const delete4 = (data) => {
  return axios.request({
    url: 'admins/equipmentCoolingAnalyze/delete',
    data: qs.stringify(data),
    method: 'post'
  })
}
//导出
export const download4 = (params) => {
  return axios.request({
    url: 'admins/equipmentCoolingAnalyze/download?t='+new Date().getTime(),
    method: 'get',
    responseType: 'blob',
    params
  })
}
export const getTableData5 = (params) => {
  return axios.request({
    url: 'admins/equipmentOilAnalyze/page?t='+new Date().getTime(),
    params,
    method: 'get'
  })
}
export const echart5 = (params) => {
  return axios.request({
    url: 'admins/equipmentOilAnalyze/conditionPage?t='+new Date().getTime(),
    params,
    method: 'get'
  })
}
export const add5 = (data) => {
  return axios.request({
    url: 'admins/equipmentOilAnalyze/add',
    data: qs.stringify(data),
    method: 'post'
  })
}
export const edit5 = (data) => {
  return axios.request({
    url: 'admins/equipmentOilAnalyze/edit',
    data: qs.stringify(data),
    method: 'post'
  })
}
export const delete5 = (data) => {
  return axios.request({
    url: 'admins/equipmentOilAnalyze/delete',
    data: qs.stringify(data),
    method: 'post'
  })
}
//导出
export const download5 = (params) => {
  return axios.request({
    url: 'admins/equipmentOilAnalyze/download?t='+new Date().getTime(),
    method: 'get',
    responseType: 'blob',
    params
  })
}
